FROM python:3.7

ENV PYTHONBUFFERED 1

ADD sources.list /etc/apt

RUN apt-get update
RUN apt-get install python3-dev default-libmysqlclient-dev -y

RUN mkdir /code
WORKDIR /code

RUN pip install pip -U
ADD . /code/
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple




